package com.company.project.controller;

import com.company.project.common.utils.DataResult;
import com.company.project.service.UserRoleService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 用户和角色关联
 *
 * @author wenbin
 * @version V1.0
 * @date 2020年3月18日
 */
@RequestMapping("/test")
@RestController
@Api(tags = "测试-接口")
public class TestController {
    @Resource
    private UserRoleService userRoleService;

    @GetMapping("/user")
    public DataResult operationUserRole() {
        return DataResult.success("测试通过");
    }
}
